//
//  TagsListCell.m
//  Contacts
//
//  Created by beisheng03 on 2017/11/2.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "TagsListCell.h"

@interface TagsListCell ()
@property (weak, nonatomic) IBOutlet UIButton *leftBtn;
@property (weak, nonatomic) IBOutlet UILabel *rightLabel;

@end

@implementation TagsListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.leftBtn.imageEdgeInsets = UIEdgeInsetsMake(10, 10, 10, 10);
    
    self.rightLabel.font = MYFONT(15);
    


    // Initialization code
}


- (void)setModel:(HouseParameSub *)model{
    _model = model;
    
    if ([_model.isSelect isEqualToString:@"1"]) {
        self.leftBtn.selected = YES;

    } else {
        self.leftBtn.selected = NO;

    }
    
    
    self.rightLabel.text = _model.name;
    
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (IBAction)leftBtnDidTap:(UIButton *)sender {
    
    
}

@end
